home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 19
/
Aminet 19 (1997)(GTI - Schatztruhe)[!][Jun 1997].iso
/
Aminet
/
util
/
time
/
clockdaemon.readme
< prev
next >
Wrap
Text File
|
1997-05-03
|
5KB
|
169 lines
Short: V1.8: hardware clock at GMT util with SAS/C link lib
Author: pueschel@imsdd.meb.uni-bonn.de
Uploader: pueschel@imsdd.meb.uni-bonn.de
Type: util/time
ClockDaemon 1.8
Features:
---------
- Keeps your hardware clock at GMT (for NetBSD users).
- Patches battclock.resource so that reads and writes to the hardware
clock are transparently adjusted.
- Handles daylight savings time.
- Does not need ixemul.library.
- Sets IXGMTOFFSET and internal time for ixemul.library V 42+.
- Detects DST start & end while computer is running.
- Optionally runs command when DST begins or ends.
- DSTCheck program for use in scripts.
- link library for SAS/C to replace broken time functions
- NEW: optionally patch locale.library to give correct offset during DST
Installation:
-------------
Copy ClockDaemon and DSTCheck to C:, and add
run >NIL: ClockDaemon <command> (LOCALEPATCH)
to your User-Startup, where <command> is a program you want to be executed when
daylight savings time begins or ends. Store an appropriate (see timezone.doc)
timezone string in ENVARC:TZ.
The switch LOCALEPATCH will make ClockDaemon patch the OpenLocale()
function in locale.library. When OpenLocale() is called with a NULL
argument to get the default locale setting, the field loc_GMTOffset will
be set to the correct value. Caution: Some clever programs make a DST
correction of their own. This will blow up now, so you have to disable
that.
ClockDaemon will set the IXGMTOFFSET variable and update the internal offset
for ixemul.library V 42 or higher. Do not use ixtimezone !
Reboot and reset your clock to your local time via the Time preferences
program.
Since version 1.2, ClockDaemon notices the start or end of daylight savings
time regardless if your computer is running at that time or not. (If it is not
running, the change command will be executed the next time ClockDaemon is
started.)
ATTENTION: The command you want to have executed must terminate or ClockDaemon
will hang !
Example (for Germany):
----------------------
User-Startup:
run >NIL: ClockDaemon SetUMSRFCDST
ENVARC:TZ:
MET-1MEST,M3.5.0,M10.5.0/03
DSTCheck:
---------
The DSTCheck command gives you an easy way to check the DST status in CLI
scripts. Its return status is WARN (5) during DST, OK (0) otherwise.
Example:
DSTCheck
If Warn
Echo "We have DST !"
Else
Echo "We don't have DST !"
Endif
time.lib:
---------
The original SAS/C functions gmtime, localtime, mktime and time do not
work correctly. The supplied link library time.lib contains replacement
functions for them. To use them, you can either copy time.lib to lib: and
specify it explicitly when linking your programs, or replace the original
modules in sc.lib. The script patch_sc.lib does this for you.
Programs linked with time.lib work with or without ClockDaemon installed.
You are free to distribute or sell your programs containing time.lib.
I only require you to add timezone.doc to such a distribution.
Legal Stuff:
------------
There is no warranty. ClockDaemon is Freeware.
Credits:
--------
I borrowed the timezone string description from the RdateTZ package.
A big "thank you" to the author.
The idea to run a script at DST start/end came from Henning Hucke.
Thanks to Hans Verkuil for tips on how ixtimezone works, and for
maintaining ixemul.library.
Thanks to John Blyth for his feedback, which lead to the addition
of LOCALEPATCH.
And finally, a big "Thank You !" to Steve, Doug and Jim at SAS.
History:
--------
Version 1.0: Not released.
1.1: Added ixemul V 42 support.
1.2: Added DSTCHANGECOMMAND.
Added detection of DST start/end while computer is on.
Added DSTCheck command.
1.3: Restructured the code, fixed some minor bugs.
Added link library for SAS/C.
1.4: Added setting of internal offset if ixemul.library is
already loaded. Fixed documentation bug; the TZ
string for Germany changed in 1996.
1.5: Added LOCALEPATCH.
1.6: The LOCALEPATCH mechanism was unnecessarily complicated,
as apparently locale.library is never unloaded. Removed
unnecessary patch of OpenLibrary.
1.7: Recompiled with SAS/C 6.57.
Fixed a bug with julian dates.
Enhanced time.lib to work better when ClockDaemon is not
installed.
1.8: Fixed small bug in time.lib and ClockDaemon. Thanks to
Walter Haidinger for finding the bug.
Bug reports & suggestions:
--------------------------
Send bug reports & suggestions to pueschel@imsdd.meb.uni-bonn.de.
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
282 127 54.9% 28-May-96 18:05:36 patch_sc.lib
3647 1668 54.2% 09-May-96 13:37:50 timezone.doc
216 202 6.4% 02-Feb-97 15:23:50 DSTCheck
7524 4377 41.8% 02-Apr-97 19:31:54 ClockDaemon
5068 2732 46.0% 02-Apr-97 19:31:56 time.lib
4636 2083 55.0% 02-Apr-97 19:34:20 clockdaemon.readme
-------- ------- ----- --------- --------
21373 11189 47.6% 03-Apr-97 15:11:32 6 files